<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>寂静领域 - 缄默中等待的个人博客</title><meta name="author" content="缄默中等待"><meta name="copyright" content="缄默中等待"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="寂静领域">
<meta property="og:url" content="https://jmzdd-jjly.website/page/2/index.html">
<meta property="og:site_name" content="寂静领域">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://jmzdd-jjly.website/img/hand.jpg">
<meta property="article:author" content="缄默中等待">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://jmzdd-jjly.website/img/hand.jpg"><link rel="shortcut icon" href="/img/hand.jpg"><link rel="canonical" href="https://jmzdd-jjly.website/page/2/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script>(adsbygoogle = window.adsbygoogle || []).push({
  google_ad_client: 'ca-pub-8513124902357647',
  enable_page_level_ads: 'true'
});</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: true,
  islazyload: true,
  isAnchor: true
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '寂静领域',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2022-04-21 22:37:19'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', 'ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 5.4.2"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "" data-lazy-src="/img/hand.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">21</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-hourglass-half"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/albums/"><i class="fa-fw fa-solid fa-images"></i><span> 相册</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-address-card"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/foodblacklist/"><i class="fa-fw fas fa-clipboard-list"></i><span> 食物黑名单</span></a></li><li><a class="site-page child" href="/update/"><i class="fa-fw fas fa-upload"></i><span> 更新日志</span></a></li></ul></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/img/default.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">寂静领域</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-hourglass-half"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/albums/"><i class="fa-fw fa-solid fa-images"></i><span> 相册</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-address-card"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 其他</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/foodblacklist/"><i class="fa-fw fas fa-clipboard-list"></i><span> 食物黑名单</span></a></li><li><a class="site-page child" href="/update/"><i class="fa-fw fas fa-upload"></i><span> 更新日志</span></a></li></ul></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">缄默中等待的个人博客</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/jmzdd" target="_blank" title="Github主页"><i class="fa-brands fa-github"></i></a><a class="social-icon" href="mailto:2041418454@qq.com" target="_blank" title="邮箱"><i class="fa-regular fa-envelope"></i></a><a class="social-icon" href="https://www.zhihu.com/people/jian-mo-zhong-deng-dai" target="_blank" title="知乎"><i class="fab fa-zhihu"></i></a><a class="social-icon" href="https://space.bilibili.com/109396152" target="_blank" title="哔哩哔哩"><i class="fa-brands fa-bilibili"></i></a><a class="social-icon" href="https://music.163.com/#/user/home?id=1469345720" target="_blank" title="网易云音乐"><i class="fa-solid fa-compact-disc"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2021/07/20/%E6%A8%A1%E7%94%B5%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="模电学习笔记（1）"><img class="post_bg" src= "" data-lazy-src="/img/mndz.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="模电学习笔记（1）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/07/20/%E6%A8%A1%E7%94%B5%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="模电学习笔记（1）">模电学习笔记（1）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-07-20T14:50:32.000Z" title="发表于 2021-07-20 22:50:32">2021-07-20</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%A8%A1%E6%8B%9F%E7%94%B5%E5%AD%90%E6%8A%80%E6%9C%AF/">模拟电子技术</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/07/20/%E6%A8%A1%E7%94%B5%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/07/20/%E6%A8%A1%E7%94%B5%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 模电的学习过程跟随上交大郑益慧老师的模电课程


教材采用《模拟电子技术基础（第四版）》华英成、童诗白主编——高等教育出版社

半导体基础一、本征半导体&emsp;&emsp;本征半导体：指纯净的具有晶体结构的半导体。
&emsp;&emsp;本征激发：指半导体在热激发下产生自由电子和空穴对的现象。
二、杂质半导体&emsp;&emsp;通过扩散工艺，在本征半导体中掺入少量合适的杂质元素，即可得到杂质半导体。控制掺入杂质元素的浓度，就可以控制杂质半导体的导电性能。
N型半导体&emsp;&emsp;在纯净的硅晶体当中掺入五价元素（如磷），使之取代晶格中硅原子的位置，就形成了N型半导体。事实上，当磷取代了硅的位置后，由于磷原子外层有5个电子，在常温下由于热激发，导致自由电子增多。此时自由电子为多数载流子（多子），空穴成为少数载流子（少子）。杂质原子提供电子，故称为施主电子。
&emsp;&emsp;N为Negative(负)的字头，由于电子带负电，故称之为N型半导体。
P型半导体&emsp;&emsp;同理，在纯净的硅原子当中掺入三价元素（如硼），使得空穴成为多子，自由电子成为少子。因 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/07/18/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%886%EF%BC%89/" title="单片机学习笔记（6）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（6）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/07/18/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%886%EF%BC%89/" title="单片机学习笔记（6）">单片机学习笔记（6）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-07-18T14:06:36.000Z" title="发表于 2021-07-18 22:06:36">2021-07-18</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/07/18/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%886%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/07/18/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%886%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 按键控制学习过程跟随up主@海创电子


&emsp;&emsp;在这之前，我们先看看开发板当中，有关按键的原理图部分。

按键动作过程&emsp;&emsp;当按键按下时，由于各个按键的另一端接地，单片机的管脚会接受到一个低电平信号。
&emsp;&emsp;理想情况下，在未按下按钮时，电平信号为高电平，而在按键按下之后，电平信号由高电平变为低电平。
&emsp;&emsp;而在实际情况下,当按钮按下时，会在高电平与低电平之间产生高低电平的交替现象，这一现象称之为抖动。在抖动现象结束后才会呈现出稳定的低电平，随着按键抬起时抖动现象再次出现，直至现象结束后回到高电平状态。

实现按键动作按键动作流程&emsp;&emsp;如果要实现按键动作，需要先检测到低电平动作，检测到低电平动作之后，使用延时函数延时5ms。这里延时5ms是因为抖动现象开始到结束时间一般为5ms,延时过后相当于跳过抖动。之后再次检测是否为低电平，若为低电平则执行相应动作。
&emsp;&emsp;“去抖”操作除了用软件可以实现，在硬件上也可以实现，这里讲的是使用软件去抖的方式。
程序实现——用按钮控制LED灯的亮灭 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/07/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%885%EF%BC%89/" title="单片机学习笔记（5）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（5）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/07/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%885%EF%BC%89/" title="单片机学习笔记（5）">单片机学习笔记（5）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-07-13T08:27:11.000Z" title="发表于 2021-07-13 16:27:11">2021-07-13</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/07/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%885%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/07/13/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%885%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 端口的使用端口初始化注意：以下文章所使用的单片机为IAP15W4K58S4


&emsp;&emsp;在上一篇文章当中，我们介绍了编写程序控制单片机以实现流水灯的几种方法。
&emsp;&emsp;在最后一种方法当中，出现了这样的几行代码：
P0M0=0X00;P0M1=0X00;   //这里对I/O口进行初始化P1M0=0X00;P1M1=0X00;P2M0=0X00;P2M1=0X00;P3M0=0X00;P3M1=0X00;P4M0=0X00;P4M1=0X00;

&emsp;&emsp;相关的内容在&lt;STC15.h&gt;这个头文件当中已有详细说明：
sfr P0M0        =   0x94;   //0000,0000 端口0模式寄存器0sfr P0M1        =   0x93;   //0000,0000 端口0模式寄存器1sfr P1M0        =   0x92;   //0000,0000 端口1模式寄存器0sfr P1M1        =   0x91;   //0000,0000 端口1模式寄存器1sfr P2M0       ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/07/11/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" title="单片机学习笔记（4）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（4）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/07/11/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" title="单片机学习笔记（4）">单片机学习笔记（4）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-07-11T08:06:09.000Z" title="发表于 2021-07-11 16:06:09">2021-07-11</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/07/11/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/07/11/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 单片机学习笔记之LED流水灯学习过程跟随B站up主@海创电子


&emsp;&emsp;这里我们采用的开发板是大科电子工作室的FM-STC15开发板。
&emsp;&emsp;LED部分的原理图如下：
 
&emsp;&emsp;在开发板上实现流水灯，必须先了解开发板上的LED小灯是如何排列的。上图的LED小灯显然是属于“共阳”（即LED的“阳级”连在一起）。与之相反，也有的开发板上的LED小灯是属于“共阴”的，这时我们就需要判断LED灯的亮灭是需要高电平还是低电平，这与接下来编程时的“0”和“1”是有关系的。
&emsp;&emsp;在单片机学习笔记（2）当中，我简单的介绍了关于利用单片机简单实现LED的亮灭，今天我们来学习如何制作流水灯。
方法1：利用十六进制数来制作流水灯&emsp;&emsp;具体代码如下：
#include &lt;STC15.h&gt;#include &lt;intrins.h&gt;    /*intrins.h，函数，应用于程序设计，一般出现于C51单片机编程中，一般程序中需要使用到空指令_nop_(),                       ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/03/18/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" title="C语言学习笔记（4）"><img class="post_bg" src= "" data-lazy-src="/img/code.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="C语言学习笔记（4）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/03/18/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" title="C语言学习笔记（4）">C语言学习笔记（4）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-03-18T05:59:27.000Z" title="发表于 2021-03-18 13:59:27">2021-03-18</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/C%E8%AF%AD%E8%A8%80/">C语言</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/03/18/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/03/18/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%884%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 关于char类型&emsp;&emsp;我们先从一道编程题开始讲起。
编程实现字母的大小写转换,要求从键盘输入任意大写字母,程序转换成小写字母并输出。


&emsp;&emsp;这是今天在上C语言课的时候，老师在课上布置的随堂练习。我自己一开始是打算用if判断来实现，但是非常的明显————使用逻辑判断语句来实现这个题目既复杂，又显的……emmm，有点蠢。所以我就“稍微”百度了一下。这里贴出这位老哥的做法：C语言实验题――大小写转换 从键盘输入一个大写字母，要求改用小写字母输出。
&emsp;&emsp;为了方便查看和说明，我将上面链接当中的代码展示在下方。
#include&lt;stdio.h&gt;int main()&#123;		char ch;	ch=getchar();//这里并没有检验这个是不是字母	putchar(ch+32);	return 0;&#125; 

初识char&emsp;&emsp;先简单说明一下，char属于C语言当中的一种常见的数据类型，即字符类型。
&emsp;&emsp;以下文字取于书本原文：
“字符类型包含字母、数字、标点符号以及控制符号 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/01/17/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" title="单片机学习笔记（3）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（3）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/01/17/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" title="单片机学习笔记（3）">单片机学习笔记（3）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-01-17T01:26:56.000Z" title="发表于 2021-01-17 09:26:56">2021-01-17</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/01/17/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/01/17/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 单片机学习之——运算符&emsp;&emsp;在了解完一些数据类型之后，接下来我们将学习如何使用运算符。
&emsp;&emsp;视频传送门：C51单片机编程基础-运算符
一、C51中常见的运算符&emsp;&emsp;在C51当中，除了在C语言当中常见的运算符，还有一些之前接触较少的运算符，例如：
算数运算符：++位运算符：&amp; | ^ ~ &lt;&lt; &gt;&gt;逻辑运算符：&amp;&amp; || ！三目录运算符：con?ture:false


二、运算符用法&emsp;&emsp;这里我们针对一些运算符进行说明：
1、算数运算符：++（自增）&emsp;&emsp;我们先看下面的示例代码：
#include&lt;stdio.h&gt;int main()&#123;	int a=10 ,b;	b=++a;	printf(&quot;a=%d\nb=%d\n&quot;,a,b);	return 0;&#125;
&emsp;&emsp;在上面的代码当中的primary 的运算顺序是先进行运算，再进行赋值。即：
a=11b=11


&emsp;&emsp ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="单片机学习笔记（2）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（2）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="单片机学习笔记（2）">单片机学习笔记（2）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-01-16T11:03:05.000Z" title="发表于 2021-01-16 19:03:05">2021-01-16</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 单片机学习之——C51初识&emsp;&emsp;在搞清楚进制转换之后，接下来就正式进入C51单片机的学习了，在学习的过程中会穿插一些关于C语言的一些知识，毕竟C51本身就是C语言的一种衍生与应用。接下来我将会按照哔哩哔哩上找的视频教程针对C51进行逐步的学习。
&emsp;&emsp;视频传送门：C51单片机编程基础-变量
一、C51的头文件&emsp;&emsp;我们先从程序框架来了解C51程序。
#include&lt;reg51.h&gt;   //头文件int main(void)      //主函数，main函数&#123;		return 0;&#125;
&emsp;&emsp;这里的头文件分别有两种类型，一种是带有尖括号的叫做系统头文件，另一种是带有双引号的叫做自定义头文件。即：
&lt;reg51.h&gt;           //系统头文件&quot;head.h&quot;            //自定义头文件
&emsp;&emsp;这意味着未来我们可以编写自己的头文件以用于我们自己写的程序。
二、C51当中的数据类型&emsp;&emsp;C语言当中 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="单片机学习笔记（1）"><img class="post_bg" src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（1）"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="单片机学习笔记（1）">单片机学习笔记（1）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-01-16T02:32:58.000Z" title="发表于 2021-01-16 10:32:58">2021-01-16</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/">51单片机</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2021/01/16/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> 单片机学习之——二进制与十六进制的互相转换&emsp;&emsp;经过一段时间的学习，终于把C语言的基础知识都大致过了一遍，接下来我将会进入单片机的学习。在这过程中偶尔会穿插一些C语言的知识，也算是一边学习单片机，一边复习C语言啦！
十六进制数一、关于十六进制数&emsp;&emsp;首先要先知道十六进制是什么并且如何表示。
&emsp;&emsp;一般来说，十六进制由数字0到9和字母A到F（或a到f）来表示。其中A到F依次表示数字10到15依次排开即：0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F，这些都称之为十六进制数。
二、十六进制数与二进制数的关系&emsp;&emsp;在十六进制的世界里，一个十六进制数字会等于四个二进制数字。
&emsp;&emsp;如下所示：
0 –&gt; 00001 –&gt; 00012 –&gt; 00103 –&gt; 00114 –&gt; 01005 –&gt; 01016 –&gt; 01107 –&gt; 01118 –&gt; 10009 –&gt; 1001A –&gt; 1010B –&gt; 1011C –&gt ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2020/12/13/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" title="C语言学习笔记（3）"><img class="post_bg" src= "" data-lazy-src="/img/code.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="C语言学习笔记（3）"></a></div><div class="recent-post-info"><a class="article-title" href="/2020/12/13/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" title="C语言学习笔记（3）">C语言学习笔记（3）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-12-13T05:14:28.000Z" title="发表于 2020-12-13 13:14:28">2020-12-13</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/C%E8%AF%AD%E8%A8%80/">C语言</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2020/12/13/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2020/12/13/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%883%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> &emsp;&emsp;今天再说说新的东西吧！
一、关于switch函数的使用&emsp;&emsp;同样的，让我们先看一看示例代码：
#include&lt;stdio.h&gt;int main()&#123;   int a,b;   char c;   scanf(&quot;%d&quot;,&amp;a);    scanf(&quot;%c&quot;,&amp;c);   scanf(&quot;%d&quot;,&amp;b);   switch(c)    &#123;   	case&#x27;+&#x27;: printf(&quot;%d&quot;, a + b); break;	case&#x27;-&#x27;: printf(&quot;%d&quot;, a - b); break;	case&#x27;*&#x27;: printf(&quot;%d&quot;, a * b); break;	case&#x27;/&#x27;:	if(a == 0)		&#123;         	 printf(&quot;Divided by zero! ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2020/12/12/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="C语言学习笔记（2）"><img class="post_bg" src= "" data-lazy-src="/img/code.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="C语言学习笔记（2）"></a></div><div class="recent-post-info"><a class="article-title" href="/2020/12/12/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="C语言学习笔记（2）">C语言学习笔记（2）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2020-12-12T03:50:23.000Z" title="发表于 2020-12-12 11:50:23">2020-12-12</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/C%E8%AF%AD%E8%A8%80/">C语言</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a href="/2020/12/12/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/#post-comment" itemprop="discussionUrl"><span class="valine-comment-count" data-xid="/2020/12/12/C%E8%AF%AD%E8%A8%80%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" itemprop="commentCount"></span></a><span class="article-meta-label"> 条评论</span></span></div><div class="content"> &emsp;&emsp;今天的心得并不多，但是我还是觉得很有必要记录一下。
一、一个数的n次方是属于double型的二、使用if……else if……else语句作逻辑判断#include&lt;stdio.h&gt;int main()&#123;	int a,b,max;	scanf(&quot;%d%d&quot;,&amp;a,&amp;b);	if(a&gt;b)		&#123;			max=a;			printf(&quot;%d&quot;,max); 		&#125;	else if(b&gt;a)		&#123;			max=b;			printf(&quot;%d&quot;,max);		&#125;	else		&#123;			printf(&quot;两个数字相等&quot;);		&#125;	return 0;&#125;
&emsp;&emsp;上面的代码目的是比较两个整数的大小，首先输入两个整数值，从上面的if(a&gt;b)就开始了if判断。其中这段代码：
if(a&gt;b)	&#123;		max=a;		printf(&quot;%d&qu ...</div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/#content-inner">3</a><a class="extend next" rel="next" href="/page/3/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "" data-lazy-src="/img/hand.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">缄默中等待</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">21</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/jmzdd"><i class="fab fa-github"></i><span>Github 主页</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/jmzdd" target="_blank" title="Github主页"><i class="fa-brands fa-github"></i></a><a class="social-icon" href="mailto:2041418454@qq.com" target="_blank" title="邮箱"><i class="fa-regular fa-envelope"></i></a><a class="social-icon" href="https://www.zhihu.com/people/jian-mo-zhong-deng-dai" target="_blank" title="知乎"><i class="fab fa-zhihu"></i></a><a class="social-icon" href="https://space.bilibili.com/109396152" target="_blank" title="哔哩哔哩"><i class="fa-brands fa-bilibili"></i></a><a class="social-icon" href="https://music.163.com/#/user/home?id=1469345720" target="_blank" title="网易云音乐"><i class="fa-solid fa-compact-disc"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">博客装修中！</div></div><div class="card-widget card-music" id="user-music"><div class="item-headline"><i class="fas fa-headphones"></i><span>今日音乐</span></div><div class="item-content"><text>播放前建议音量调至5以内！</text> <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=236 height=90 style="display:flex" src="//music.163.com/outchain/player?type=2&id=1306923998&auto=0&height=66"></iframe></div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）"><img src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（2）"/></a><div class="content"><a class="title" href="/2022/04/12/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%882%EF%BC%89/" title="STM32学习笔记（2）">STM32学习笔记（2）</a><time datetime="2022-04-12T15:26:24.000Z" title="发表于 2022-04-12 23:26:24">2022-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈"><img src= "" data-lazy-src="/img/HTML_DOM.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="HTML DOM闲谈"/></a><div class="content"><a class="title" href="/2022/04/12/HTML%20DOM%E9%97%B2%E8%B0%88/" title="HTML DOM闲谈">HTML DOM闲谈</a><time datetime="2022-04-12T11:49:19.000Z" title="发表于 2022-04-12 19:49:19">2022-04-12</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）"><img src= "" data-lazy-src="/img/STM32.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="STM32学习笔记（1）"/></a><div class="content"><a class="title" href="/2022/03/02/STM32%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%881%EF%BC%89/" title="STM32学习笔记（1）">STM32学习笔记（1）</a><time datetime="2022-03-02T02:02:31.000Z" title="发表于 2022-03-02 10:02:31">2022-03-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）"><img src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（12）"/></a><div class="content"><a class="title" href="/2021/09/29/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8812%EF%BC%89/" title="单片机学习笔记（12）">单片机学习笔记（12）</a><time datetime="2021-09-29T02:30:40.000Z" title="发表于 2021-09-29 10:30:40">2021-09-29</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）"><img src= "" data-lazy-src="/img/dzjs.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="单片机学习笔记（11）"/></a><div class="content"><a class="title" href="/2021/09/28/%E5%8D%95%E7%89%87%E6%9C%BA%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%8811%EF%BC%89/" title="单片机学习笔记（11）">单片机学习笔记（11）</a><time datetime="2021-09-28T06:16:14.000Z" title="发表于 2021-09-28 14:16:14">2021-09-28</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/categories/51%E5%8D%95%E7%89%87%E6%9C%BA/"><span class="card-category-list-name">51单片机</span><span class="card-category-list-count">12</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/C%E8%AF%AD%E8%A8%80/"><span class="card-category-list-name">C语言</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/HYML-DOM/"><span class="card-category-list-name">HYML DOM</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/STM32/"><span class="card-category-list-name">STM32</span><span class="card-category-list-count">2</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%88%91%E7%9A%84%E6%97%A5%E8%AE%B0/"><span class="card-category-list-name">我的日记</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%A8%A1%E6%8B%9F%E7%94%B5%E5%AD%90%E6%8A%80%E6%9C%AF/"><span class="card-category-list-name">模拟电子技术</span><span class="card-category-list-count">1</span></a></li>
            </ul></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/04/"><span class="card-archive-list-date">四月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/03/"><span class="card-archive-list-date">三月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/09/"><span class="card-archive-list-date">九月 2021</span><span class="card-archive-list-count">6</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/07/"><span class="card-archive-list-date">七月 2021</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/03/"><span class="card-archive-list-date">三月 2021</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/01/"><span class="card-archive-list-date">一月 2021</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/12/"><span class="card-archive-list-date">十二月 2020</span><span class="card-archive-list-count">4</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">21</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2020-03-09T14:56:00.000Z"></div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">15.7k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2022-04-21T14:37:19.173Z"></div></div></div></div></div></div></main><footer id="footer" style="background-image: url('/img/default.png')"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2022 By 缄默中等待</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a><br>
<view style="display:flex; justify-content:center; align-items:center;">
<img src= "" data-lazy-src="https://icp.gov.moe/images/ico64.png" style="width: 20px;height:20px;flex:display;">
<a href="https://icp.gov.moe/?keyword=20220722" target="_blank">萌ICP备20220722号</a>
</view></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="translateLink" type="button" title="简繁转换">繁</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@5/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script>var preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>(() => {
  function loadValine () {
    function initValine () {
      let initData = {
        el: '#vcomment',
        appId: 'etBss7YgMOAQaSG9Etu1DEDe-gzGzoHsz',
        appKey: 'rXdEJTgkAnTFjxALqSfJmwzx',
      }
      
      const valine = new Valine(initData)
    }

    if (typeof Valine === 'function') initValine() 
    else getScript('https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js').then(initValine)
  }

  window.pjax ? loadValine() : window.addEventListener('load', loadValine)
})()</script><script>function subtitleType () {
  if (true) { 
    window.typed = new Typed("#subtitle", {
      strings: ["不以言举人，不以人废言。","Good good study, day day up.","你和快乐一样值得我去奔赴。","You are as worthy of me as happiness.","想要成就一番事业，不仅要行动，还要敢于梦想；不仅要做计划，还要抱有信念。","To accomplish great things, we must not only act, but also dream; not only plan, but also believe."],
      startDelay: 300,
      typeSpeed: 150,
      loop: true,
      backSpeed: 50
    })
  } else {
    document.getElementById("subtitle").innerHTML = '不以言举人，不以人废言。'
  }
}

if (true) {
  if (typeof Typed === 'function') {
    subtitleType()
  } else {
    getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
  }
} else {
  subtitleType()
}</script></div><canvas class="fireworks" mobile="true"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/fireworks.min.js"></script><script id="canvas_nest" defer="defer" color="0,0,255" opacity="0.7" zIndex="-1" count="99" mobile="true" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-nest.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script>window.$crisp = [];
window.CRISP_WEBSITE_ID = "cfcdaacf-e138-4b9b-a7e9-9dc112fcdc2c";
(function () {
  d = document;
  s = d.createElement("script");
  s.src = "https://client.crisp.chat/l.js";
  s.async = 1;
  d.getElementsByTagName("head")[0].appendChild(s);
})();
$crisp.push(["safe", true])

if (false) {
  $crisp.push(["do", "chat:hide"])
  $crisp.push(["on", "chat:closed", function() {
    $crisp.push(["do", "chat:hide"])
  }])
  var chatBtnFn = () => {
    var chatBtn = document.getElementById("chat_btn")
    chatBtn.addEventListener("click", function(){
      $crisp.push(["do", "chat:show"])
      $crisp.push(["do", "chat:open"])

    });
  }
  chatBtnFn()
} else {
  if (false) {
    function chatBtnHide () {
      $crisp.push(["do", "chat:hide"])
    }
    function chatBtnShow () {
      $crisp.push(["do", "chat:show"])
    }
  }
}</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>